using Prologis.Logging;
using System.IO;
using System.Collections.Generic;



namespace Prologis.ShifterNT.Datasink
{


    public class MemorySink : IDataSink
    {

        public string Separator = "|_|";
        public IList<string> Imorted = new List<string>();
        public bool Active { get; set; }

        public void Take(FieldList data)
        {

            string values = string.Empty;
            foreach (Field field in data)
            {
                if (values == string.Empty)
                {
                    values =  field.Value.ToString();
                }
                else
                {
                    values = values + this.Separator + field.Value;
                }
                
            }
            this.Imorted.Add(values);
        }


    }

}
